<?php
use common\modules\system\models\MenuCategory;


/* @var $this yii\web\View */
/* @var $model common\modules\system\models\Menu */

$category = getGetValue('category');
$categoryModel = MenuCategory::findOne(['id'=>$category]);

$this->title = '新建菜单项';
$this->params['breadcrumbs'][] = [
    'label' => '菜单管理',
    'url' => ['/menu']
];
$this->params['breadcrumbs'][] = [
    'label' => $categoryModel['name'],
    'url' => ['/menu/default/index','category'=>$category]
];
$this->params['breadcrumbs'][] = $this->title;
?>

<?= $this->render('_form', [
        'model' => $model,
    ]) ?>